package com.deyuanyun.pic.ctrl.controller.dto;

import com.deyuanyun.pic.common.util.StringUtils;
import com.deyuanyun.pic.common.util.poi.annotation.ExcelWriteColumn;
import com.deyuanyun.pic.ctrl.enumeration.CurrentFerenceEnum;
import com.deyuanyun.pic.ctrl.enumeration.InterferenceEnum;

/**
 * @author Jerry
 * @Description 交直流干扰dto
 * @date 2016-09-07
 */
public class AcdcDisturbDTO {
    private String id;//交直流Id;
    private String isId;//对应6大干扰源的主键id
    @ExcelWriteColumn
    private String pipeName;//管道名称
    @ExcelWriteColumn
    private String fromName;//起始位置
    @ExcelWriteColumn
    private String toName;//终点位置
    @ExcelWriteColumn
    private String monitorNum;//检测点编号
    @ExcelWriteColumn
    private String mileage;//绝对距离
    @ExcelWriteColumn
    private String isType;//干扰源类型
    @ExcelWriteColumn
    private String distrubLevel;//干扰程度

    private String gisId;//干扰源gisid

    private String pipeGisId;//管道gisid

    private String identGisId;//桩gisid

    private String valRoomGisId;//阀室gisid;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIsId() {
        return isId;
    }

    public void setIsId(String isId) {
        this.isId = isId;
    }

    public String getPipeName() {
        return pipeName;
    }

    public void setPipeName(String pipeName) {
        this.pipeName = pipeName;
    }


    public String getFromName() {

        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public String getMonitorNum() {
        return monitorNum;
    }

    public void setMonitorNum(String monitorNum) {
        this.monitorNum = monitorNum;
    }

    public String getMileage() {
        return mileage;
    }

    public void setMileage(String mileage) {
        this.mileage = mileage;
    }

    public String getIsType() {
        if (StringUtils.isNotEmpty(isType)) {

            return InterferenceEnum.getLabel(isType);
        }
        return null;
    }

    public void setIsType(String isType) {
        this.isType = isType;
    }

    public String getDistrubLevel() {
        if (StringUtils.isNotEmpty(distrubLevel)) {
            return CurrentFerenceEnum.getLabelBycode(distrubLevel);
        }
        return null;
    }

    public void setDistrubLevel(String distrubLevel) {
        this.distrubLevel = distrubLevel;
    }

    public String getGisId() {
        return gisId;
    }

    public void setGisId(String gisId) {
        this.gisId = gisId;
    }

    public String getPipeGisId() {
        return pipeGisId;
    }

    public void setPipeGisId(String pipeGisId) {
        this.pipeGisId = pipeGisId;
    }

    public String getIdentGisId() {
        return identGisId;
    }

    public void setIdentGisId(String identGisId) {
        this.identGisId = identGisId;
    }

    public String getValRoomGisId() {
        return valRoomGisId;
    }

    public void setValRoomGisId(String valRoomGisId) {
        this.valRoomGisId = valRoomGisId;
    }
}
